package com.ruoyi.financial.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import com.ruoyi.financial.domain.TJrFactoringDetail;
import com.ruoyi.financial.mapper.TJrFactoringDetailMapper;
import com.ruoyi.financial.service.ITJrFactoringDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-07-02
 */
@Service
public class TJrFactoringDetailServiceImpl implements ITJrFactoringDetailService
{
    @Autowired
    private TJrFactoringDetailMapper tJrFactoringDetailMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public TJrFactoringDetail selectTJrFactoringDetailById(Long id)
    {
        return tJrFactoringDetailMapper.selectTJrFactoringDetailById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param tJrFactoringDetail 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<TJrFactoringDetail> selectTJrFactoringDetailList(TJrFactoringDetail tJrFactoringDetail)
    {
        return tJrFactoringDetailMapper.selectTJrFactoringDetailList(tJrFactoringDetail);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param tJrFactoringDetail 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertTJrFactoringDetail(TJrFactoringDetail tJrFactoringDetail)
    {
        tJrFactoringDetail.setCreateTime(DateUtils.getNowDate());
        return tJrFactoringDetailMapper.insertTJrFactoringDetail(tJrFactoringDetail);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param tJrFactoringDetail 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateTJrFactoringDetail(TJrFactoringDetail tJrFactoringDetail)
    {
        tJrFactoringDetail.setUpdateTime(DateUtils.getNowDate());
        return tJrFactoringDetailMapper.updateTJrFactoringDetail(tJrFactoringDetail);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteTJrFactoringDetailByIds(Long[] ids)
    {
        return tJrFactoringDetailMapper.deleteTJrFactoringDetailByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteTJrFactoringDetailById(Long id)
    {
        return tJrFactoringDetailMapper.deleteTJrFactoringDetailById(id);
    }
}
